﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Class_Management
{
    public partial class Form_main : Form
    {
        public Form_main()
        {
            InitializeComponent();
        }

        private void button_query_Click(object sender, EventArgs e)
        {
            var area = this.comboBox_area.SelectedItem;
            var week = this.comboBox_week.SelectedItem;
            var time = this.comboBox_time.SelectedItem;
            var day = this.comboBox_day.SelectedItem;

            if (area == null || week == null || time==null || day==null)
            {
                MessageBox.Show("请选择信息", "提示", MessageBoxButtons.OK);
            }
            else
            {
                this.pictureBox1.Visible = true;
            }

            /* 这里要实现数据库查询 */
        }

        /*
         * 点击某教室后出现新窗口显示是否有课：
         * 有课显示课程信息；无课显示座位信息
         */
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            new Form_class().Show();
        }
    }
}
